/*
 * Test code for FindSystemGCInvocations detector
 * 
 * Written by David Hovemeyer
 * This code is in the public domain
 */
package net.findbugs.demo.testcode;

public class TestSGC {
	@Override
	protected void finalize() throws Throwable {
		System.gc(); // very bad
	}
	
	public void test() {
		System.gc(); // dumb
	}
	
	public static void main(String[] args) {
	    System.gc(); // maybe this is ok; don't report a warning
	}
}
